using ScienceRpcServe;

var builder = WebApplication.CreateBuilder(args);

builder.Setting();

builder.ConfigureNLog();

// configure mqtt
//builder.ConfigureMqttSubscribe();

// configure dependency injection
builder.Register();

// configure kestrel 
builder.ConfigureKestrel();

builder.Services.AddGrpc();

var app = builder.Build();

// configure grpc service
app.MapServices();

app.Run();
